﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ETL.Business.Models;
using ETL.Common;

namespace ETL.Business.Handlers.SessionHandler
{
    public class GetSessionDataModel
    {
        public GetSessionDataModel()
        {
        }
        public CurrentWorkModel Current()
        {
            var cProjectId = (new GetSessionProject()).Current();
            var cCategoryId = (new GetSessionCategory()).Current();
            var cTask = (new GetSessionTask()).Current();
            var cActivity = (new GetSessionActivity()).Current();
            var cResuming = (new GetSessionResuming()).Execute();

            return new CurrentWorkModel(cProjectId, cCategoryId, cTask, cResuming, cActivity);
        }
        public CurrentWorkModel Last()
        {
            var cProjectId = (new GetSessionProject()).Last();
            var cCategoryId = (new GetSessionCategory()).Last();
            var cTask = (new GetSessionTask()).Last();
            var cActivity = (new GetSessionActivity()).Last();
            var cResuming = (new GetSessionResuming()).Execute();

            return new CurrentWorkModel(cProjectId, cCategoryId, cTask, cResuming, cActivity);
        }

    }
}
